package org.p2psimulator.entity.id;

import org.p2psimulator.entity.Id;

public class DoubleId extends Id<Double> {



	public DoubleId(Double id){
		super(id);
	}
        public DoubleId(int id){
		super(new Double(id));
	}

	@Override
	public int hashCode() {
		return value.intValue();
	}


	@Override
	public boolean equals(Object arg) {

            if (arg == null){
                return false;
            }
		DoubleId id = (DoubleId) arg;
		if (this.value == id.getValue()){
			return true;
		}else{
			return false;
		}
	}

}
